let text = '';
for (let i = 0; i < 10; i++) {
  if (i === 3) {
    continue;
  }
  text = text + i;
}

console.log('text:' + text);  // text:012456789

let number = '';
for (let i = 0; i < 10; i++) {
  if (i === 3) {
    break;
  }
  number = number + i;
}
console.log('number:' + number); // number:012